import axios from 'axios';
import {
  loginreq,
  req,
  captchareq,
  req_info,
  reqPage,
  reqDeleteUser,
  Adduser,
  Permission,
  singer,
  file,
  number
} from './axiosFun';

const BaseUrl = "http://60.205.253.99:7654/"
// const BaseUrl = "http://127.0.0.1:7654/"
//购买食物
export const generateAnOrder=(number,food_id) => {return singer("post",BaseUrl+`order/generateAnOrder?number=${number}&food_id=${food_id}`)}
//查询自己的订单
export const inquireAboutYourOrder=() => {return singer("get",BaseUrl+`order/inquireAboutYourOrder`)}
//取消订单退款
export const cancelOrder=(id)=>{return singer("post",BaseUrl+`order/cancelOrder?id=${id}`)}
//确认收货，删除订单
export const OrderInterface=(id)=>{return singer("delete",BaseUrl+`order/deleteOrderInterface?id=${id}`)}
